package com.ruixiang.study;

import org.junit.Test;

/**
 * @author ruixinag
 * @description
 * @create Created in 2022/1/19 16:06
 */
public class Demo3 {
    @Test
    public void test01(){
        String date="20220101083001";
        System.out.println(date.substring(0,4)+"-"+date.substring(4,6)+"-"+date.substring(6,8)+" "+date.substring(8,10)
        +":"+date.substring(10,12)+":"+date.substring(12));
    }

}
